<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">入库单号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-inbound_no" class="form-control" name="row[inbound_no]" type="text" value="" placeholder="系统自动生成" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">供应商:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-supplier_id" class="form-control selectpicker" name="row[supplier_id]" data-live-search="true" required>
                <option value="">请选择供应商</option>
                {foreach $supplierList as $k=>$v}
                <option value="{$k}">{$v}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">入库日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-inbound_date" class="form-control datetimepicker" name="row[inbound_date]" type="text" value="" placeholder="请选择入库日期" required>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">仓库:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-warehouse_id" class="form-control selectpicker" name="row[warehouse_id]" data-live-search="true" required>
                <option value="">请选择仓库</option>
                {foreach $warehouseList as $k=>$v}
                <option value="{$k}">{$v}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">总金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_amount" class="form-control" name="row[total_amount]" type="number" step="0.01" value="0.00" placeholder="请输入总金额">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" class="form-control selectpicker" name="row[status]" data-live-search="true">
                <option value="1" selected>待入库</option>
                <option value="2">已入库</option>
                <option value="3">已取消</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" rows="5" name="row[remark]" placeholder="请输入备注信息"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>